html, body, div, input, p {
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	position: relative;
}

.l {
	float: left;
}

.r {
	float: right;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.container {
	width: 100%;
	height: 100%;
	max-width: 500px;
	margin: 0 auto;
	position: relative;
}

.content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 60px;
	padding: 15px 0;
	overflow-y: auto;
	background-image: url(./images/chat-bg.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.section {
	float: left;
	max-width: 50%;
	background-color: #fff;
	padding: 5px 10px;
	font-size: 14px;
	border-radius: 6px;
	line-height: 1.3;
	word-wrap: break-word;
	box-shadow: 0 0 1px rgba(0,0,0,0.5);
	position: relative;
}

.section::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-right-color: #fff;
	left: -13px;
	top: 6px;
}

.section-self {
	float: right;
	background-color: #A8EC6C;
	position: relative;
}

.section-self::before {
	content: '';
	width: 0;
	height: 0;
	border: 0;
}

.section-self::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: #A8EC6C;
	right: -14px;
	top: 7px;
}

.control {
	position: absolute;
	width: 100%;
	height: 60px;
	bottom: 0;
	background-color: #f7f7f7;
}

#input {
	width: 60%;
	height: 30px;
	margin: 15px 0 0 5%;
	float: left;
	border: 0;
	border-bottom: 1px solid #5cb85c;
	outline: 0;
	background-color: transparent;
	font-size: 14px;
}

.send-btn {
	width: 25%;
	height: 40px;
	line-height: 40px;
	color: #fff;
	background-color: #337ab7;
	text-align: center;
	float: right;
	margin: 10px 5% 0 0;
	border-radius: 6px;
}

.list {
	padding: 5px 20px;
	overflow: hidden;
	margin-top: 10px;
}

.list:first-child {
	margin-top: 0;
}

.info {
	display: inline-block;
	max-width: 50%;
	color: #f7f7f7;
	line-height: 1.3;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 4px;
	background-color: rgba(0,0,0,0.2);
	word-wrap: break-word;
}

.user-name {
	line-height: 1;
	font-size: 12px;
	color: #f1f1f1;
	margin-bottom: 3px;
}